﻿

using UnityEngine;

namespace Gameplay.CharacterFramework
{
    [CreateAssetMenu(fileName = "NewJump", menuName = "Skills/NewJump")]
    public class Jump : Skill
    {
        public float Force;
        public override void Begin()
        {
            base.Begin();
            Debug.Log(this.name);
            Vector3 dir=new Vector3(0,1,_user.Direction.z).normalized;
            _physicsComponent.AddForce(dir*Force,ForceMode.VelocityChange);
        }
    }
}
